package top.lixunda.ecommerce.server.user.api.entity.db;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户菜单权限视图
 *
 * @author Lixunda
 * @since 2020-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_menu")
@ApiModel(value = "用户菜单权限视图对象", description = "用户菜单权限视图")
public class UserMenuDO extends Model<UserMenuDO> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "官方用户唯一账户")
    @TableField("account")
    private Integer account;

    @ApiModelProperty(value = "用户类型，如管理员，店铺用户，普通用户")
    @TableField("user_type")
    private String userType;

    @ApiModelProperty(value = "菜单编号")
    @TableField("menu_id")
    private Integer menuId;

    @ApiModelProperty(value = "菜单名称")
    @TableField("menu_name")
    private String menuName;

    @ApiModelProperty(value = "菜单图标")
    @TableField("menu_icon")
    private String menuIcon;

    @ApiModelProperty(value = "菜单编码")
    @TableField("menu_code")
    private String menuCode;

    @ApiModelProperty(value = "菜单链接路径")
    @TableField("menu_url")
    private String menuUrl;

    @ApiModelProperty(value = "排序字段，小数在前")
    @TableField("menu_order")
    private Integer menuOrder;

    @ApiModelProperty(value = "菜单描述")
    @TableField("menu_desc")
    private String menuDesc;

    @ApiModelProperty(value = "父节点编号，第一级节点为子系统短码")
    @TableField("parent_menu_id")
    private Integer parentMenuId;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
